import 'package:citiesocial/_include.dart';
import 'package:citiesocial/ui/main/catalogue/theme_list.dart';

/// 主题目录样式，即上面那个有点像viewpage的那个
class ThemeCatalogue extends StatelessWidget {
  final List<ThemeEntity> list;
  final hasTriangle;
  ThemeCatalogue(this.list, [this.hasTriangle = false]);

  @override
  Widget build(BuildContext context) => Column(
        mainAxisSize: MainAxisSize.min,
        children: <Widget>[
          ThemeGoods(list, hasTriangle),
          SeeMore(
            title: '更多主题活动',
            onTap: () {
              Navigator.push(context, MaterialPageRoute(builder: (context)=> ThemeList() ));
            },
          )
        ],
      );
}
